package cn.fengzhilun.javase.javafx.control;

import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.Label;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
import javafx.stage.Stage;

public class DemoLable extends Application{

	@Override
	public void start(Stage primaryStage) throws Exception {
		Label label = new Label("合并");
		
		Image image= new Image(getClass().getResourceAsStream("scissors.png"));
		
		ImageView view = new ImageView(image);
		
		label.setGraphic(view);
		
		Scene scene = new Scene(label);
		
		primaryStage.setScene(scene);
		
		primaryStage.show();
		
		
	}
	
	public static void main(String[] args) {
		Application.launch(args);
	}
}
